const express = require("express")


const router = express.Router()

//路由级别中间件
router.get('/my',(req,res)=>{
    //获取路由参数
    console.log(req.query)
    res.send('路由分模块index')
})

router.post('/list',(req,res)=>{
    console.log(req.body,'post获取参数')
    res.send({
        status:200
    })
})

module.exports = router